﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for ContactUser
/// </summary>
/// 
namespace CE.User
{
    public class ContactUser
    {
        private Int64 _callmeid;
        private Int64 _refceuserid;
        private Int64 _productid;
        private Int64 _providercompanyid;
        private string _insurancetype;
        private string _fullname;
        private string _contactno;
        private Int16 _calltime;
        private Int64 _agentid;
        private string _info1; //CallType 1 not offline, 2 is offline
        private string _info2; //vehicle number
        private string _info3; //excel filepath

        //common field name
        private bool _status;
        private DateTime _createddate;
        private DateTime _modifieddate;

        public ContactUser()
        {
            //
            // TODO: Add constructor logic here
            //
            ClearFields();
        }

        public Int64 CallMeId
        {
            get { return _callmeid; }
            set { _callmeid = value; }
        }

        public Int64 RefCEUserId
        {
            get { return _refceuserid; }
            set { _refceuserid = value; }
        }

        public Int64 ProductId
        {
            get { return _productid; }
            set { _productid = value; }
        }

        public Int64 ProviderCompanyId
        {
            get { return _providercompanyid; }
            set { _providercompanyid = value; }
        }

        public string InsuranceType
        {
            get { return _insurancetype; }
            set { _insurancetype = value; }
        }

        public string FullName
        {
            get { return _fullname; }
            set { _fullname = value; }
        }

        public string ContactNo
        {
            get { return _contactno; }
            set { _contactno = value; }
        }

        public Int16 CallTime
        {
            get { return _calltime; }
            set { _calltime = value; }
        }

        public Int64 AgentId
        {
            get { return _agentid; }
            set { _agentid = value; }
        }

        public bool Status
        {
            get { return _status; }
            set { _status = value; }
        }

        public DateTime CreatedDate
        {
            get { return _createddate; }
            set { _createddate = value; }
        }

        public DateTime ModifiedDate
        {
            get { return _modifieddate; }
            set { _modifieddate = value; }
        }

        public string Info1
        {
            get { return _info1; }
            set { _info1 = value; }
        }

        public string Info2
        {
            get { return _info2; }
            set { _info2 = value; }
        }

        public string Info3
        {
            get { return _info3; }
            set { _info3 = value; }
        }

        public void ClearFields()
        {
            _callmeid = 0;
            _refceuserid = 0;
            _productid = 0;
            _providercompanyid = 0;
            _insurancetype = "";
            _fullname = "";
            _contactno = "";
            _calltime = -1;

            //common field name
            _status = true;
            _createddate = CE.Global.General.GetUTCDateTime();
            _modifieddate = CE.Global.General.GetUTCDateTime();

        }

    }
}